package com.gjintel.business.proj.model;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 投标保证金
 * @author wei
 *
 */
@Entity
@Table(name = "t_sys_deposit_return")
public class DepositReturn {
	private String bidderId;//投标人id
	private Date transTime;//保证金缴纳时间
	private BigDecimal tnAmount; //保证金金额
	private Boolean isBid;   //是否投标  0 未投标 1 已投标
	private Integer returnOpt;//是否操作0.未提交申请  1.已提交申请 2.申请失败 -1 超时未返回
	private String projectName;//项目名称
	private Integer status; //0.未退还1.已退还 2.扣除  -1 退还失败
	private String biaoDuanNo; //项目标段号
	//private String hstSeqNum;//交易流水号
	private String inAcct;//投标人账户
	private String bankName;//开户行名
	private String bankNo;//开户行帐号
	private ComposeIdPK pk;  //联合 主键
	private Date updateTime;    //更新日期
	private String projectCode; //项目code
	private Date returnTime;    //退款时间
    private String projectType; //项目类型
    private String depositTypeExport;
    private BigDecimal outAmount;
    private String addWord;     //状态描述
    
	
	@Column(name="update_time")	
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	@Id
	public ComposeIdPK getPk(){
		return pk;
	}
	public void setPk(ComposeIdPK pk) {
		this.pk = pk;
	}

	@Column(name="bidder_id")
	public String getBidderId() {
		return bidderId;
	}
	public void setBidderId(String bidderId) {
		this.bidderId = bidderId;
	}

	@Column(name="trans_time")
	public Date getTransTime() {
		return transTime;
	}
	public void setTransTime(Date transTime) {
		this.transTime = transTime;
	}
	
	@Column(name="tn_amount")
	public BigDecimal getTnAmount() {
		return tnAmount;
	}
	public void setTnAmount(BigDecimal tnAmount) {
		this.tnAmount = tnAmount;
	}
	
	
	
	@Column(name="project_name")
	public String getProjectName() {
		return projectName;
	}
	
	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
	
	@Column(name="is_bid")
	public Boolean getIsBid() {
		return isBid;
	}
	public void setIsBid(Boolean isBid) {
		this.isBid = isBid;
	}
	@Column(name="biaoduan_no")
	public String getBiaoDuanNo() {
		return biaoDuanNo;
	}
	public void setBiaoDuanNo(String biaoDuanNo) {
		this.biaoDuanNo = biaoDuanNo;
	}
	
//	@Column(name="hst_seq_num")
//	public String getHstSeqNum() {
//		return hstSeqNum;
//	}
//	public void setHstSeqNum(String hstSeqNum) {
//		this.hstSeqNum = hstSeqNum;
//	}
	
	@Column(name="in_acct")
	public String getInAcct() {
		return inAcct;
	}
	public void setInAcct(String inAcct) {
		this.inAcct = inAcct;
	}
	
	@Column(name="bank_name")
	public String getBankName() {
		return bankName;
	}
	public void setBankName(String bankName) {
		this.bankName = bankName;
	}
	
	@Column(name="bank_no")
	public String getBankNo() {
		return bankNo;
	}
	public void setBankNo(String bankNo) {
		this.bankNo = bankNo;
	}
	
	@Column(name="status")
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	@Column(name="return_time")
	public Date getReturnTime() {
		return returnTime;
	}
	public void setReturnTime(Date returnTime) {
		this.returnTime = returnTime;
	}
	@Column(name="return_opt")
	public Integer getReturnOpt() {
		return returnOpt;
	}
	public void setReturnOpt(Integer returnOpt) {
		this.returnOpt = returnOpt;
	}

	@Column(name="project_code")
	public String getProjectCode() {
		return projectCode;
	}
	public void setProjectCode(String projectCode) {
		this.projectCode = projectCode;
	}
	
	
	@Column(name="add_word")
	public String getAddWord() {
		return addWord;
	}
	public void setAddWord(String addWord) {
		this.addWord = addWord;
	}
	
	@Column(name="project_type")
	public String getProjectType() {
		return projectType;
	}
	public void setProjectType(String projectType) {
		this.projectType = projectType;
	}
	
	@Transient
	public String getDepositTypeExport() {
		return depositTypeExport;
	}
	public void setDepositTypeExport(String depositTypeExport) {
		this.depositTypeExport = depositTypeExport;
	}
	@Transient
	public BigDecimal getOutAmount() {
		return outAmount;
	}
	public void setOutAmount(BigDecimal outAmount) {
		this.outAmount = outAmount;
	}
	
	
	
	
}
